import request from '@/utils/request'
/**
 *获取月卡列表
 * @param {*} params
 * @returns
 */
export function getLoginApi(params) {
  return request({
    url: '/parking/card/list',
    method: 'get',
    params
  })
}
/**
 * 添加列表接口
 * @param {*} data
 * @returns
 */
export function getAddApi(data) {
  return request({
    url: '/parking/card',
    method: 'POST',
    data
  })
}
/**
 *获取月卡编辑信息
 * @param {*} id
 * @returns
 */
export function getHuiXian(id) {
  return request({
    url: `/parking/card/detail/${id}`
  })
}
/**
 *编辑月卡data参数
 * @param {*} data
 * @returns
 */
export function getBianJi(data) {
  return request({
    url: '/parking/card/edit',
    method: 'put',
    data
  })
}
//  https://api-hmzs.itheima.net/v1/parking/card/{ids}
export function getDeleteApi(id) {
  return request({
    url: `/parking/card/${id}`,
    method: 'delete'
  })
}
